﻿$(document).ready(function () {
    $("#repost-area").focus();
});

function onRepostBegin() {
    $("#submit-button").attr("disabled", true);
}

function onRepostSuccess() {
    $("#submit-button").removeAttr("disabled", true);
    $("#repost-area").val("");
}

function onRepostFailure() {
    $("#submit-button").removeAttr("disabled", true);
    alert("Comment failed!");
}